.class public final Lkairo/android/ui/n;
.super Ljava/lang/Object;


# static fields
.field private static final a:[I

.field private static final b:[I

.field private static final d:[I

.field private static final f:[Landroid/graphics/Typeface;

.field private static j:[F

.field private static k:Landroid/graphics/Typeface;

.field private static l:I


# instance fields
.field private c:I

.field private e:I

.field private g:I

.field private h:I

.field private i:Landroid/graphics/Paint;

.field private m:F


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/4 v1, 0x3

    new-array v0, v1, [I

    fill-array-data v0, :array_0

    sput-object v0, Lkairo/android/ui/n;->a:[I

    new-array v0, v1, [I

    fill-array-data v0, :array_1

    sput-object v0, Lkairo/android/ui/n;->b:[I

    new-array v0, v1, [I

    fill-array-data v0, :array_2

    sput-object v0, Lkairo/android/ui/n;->d:[I

    new-array v0, v1, [Landroid/graphics/Typeface;

    const/4 v1, 0x0

    sget-object v2, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface;

    aput-object v2, v0, v1

    const/4 v1, 0x1

    sget-object v2, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface;

    aput-object v2, v0, v1

    const/4 v1, 0x2

    sget-object v2, Landroid/graphics/Typeface;->SANS_SERIF:Landroid/graphics/Typeface;

    aput-object v2, v0, v1

    sput-object v0, Lkairo/android/ui/n;->f:[Landroid/graphics/Typeface;

    const/16 v0, 0x400

    new-array v0, v0, [F

    sput-object v0, Lkairo/android/ui/n;->j:[F

    const/4 v0, -0x1

    sput v0, Lkairo/android/ui/n;->l:I

    return-void

    nop

    :array_0
    .array-data 4
        0xc
        0x18
        0x1e
    .end array-data

    :array_1
    .array-data 4
        0x6
        0xc
        0xf
    .end array-data

    :array_2
    .array-data 4
        0x0
        0x1
        0x2
    .end array-data
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/high16 v0, 0x3f800000    # 1.0f

    iput v0, p0, Lkairo/android/ui/n;->m:F

    invoke-virtual {p0}, Lkairo/android/ui/n;->a()V

    return-void
.end method

.method public constructor <init>(Lkairo/android/ui/n;)V
    .locals 4

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/high16 v0, 0x3f800000    # 1.0f

    iput v0, p0, Lkairo/android/ui/n;->m:F

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setLinearText(Z)V

    iget v0, p1, Lkairo/android/ui/n;->c:I

    invoke-virtual {p0, v0}, Lkairo/android/ui/n;->a(I)V

    iget v0, p1, Lkairo/android/ui/n;->e:I

    iget v1, p1, Lkairo/android/ui/n;->g:I

    iput v0, p0, Lkairo/android/ui/n;->e:I

    iput v1, p0, Lkairo/android/ui/n;->g:I

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    sget-object v1, Lkairo/android/ui/n;->f:[Landroid/graphics/Typeface;

    iget v2, p0, Lkairo/android/ui/n;->g:I

    aget-object v1, v1, v2

    sget-object v2, Lkairo/android/ui/n;->d:[I

    iget v3, p0, Lkairo/android/ui/n;->e:I

    aget v2, v2, v3

    invoke-static {v1, v2}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;I)Landroid/graphics/Typeface;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    return-void
.end method

.method private a(Lkairo/android/ui/aa;Ljava/lang/String;)F
    .locals 8

    const/4 v1, 0x0

    const/high16 v6, 0x41200000    # 10.0f

    const v5, 0x3c23d70a    # 0.01f

    const/4 v0, 0x0

    if-eqz p2, :cond_0

    iget-object v2, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    if-nez v2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-static {}, Lkairo/android/i/h;->a()Z

    iget v2, p0, Lkairo/android/ui/n;->g:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_2

    invoke-static {p2}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->getTextSize()F

    move-result v2

    iget v3, p0, Lkairo/android/ui/n;->m:F

    mul-float/2addr v3, v2

    const/high16 v4, 0x3f000000    # 0.5f

    add-float/2addr v3, v4

    float-to-int v3, v3

    int-to-float v3, v3

    iget v4, p0, Lkairo/android/ui/n;->m:F

    div-float/2addr v3, v4

    add-float/2addr v3, v5

    iget-object v4, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    invoke-virtual {v4, v3}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v3, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    iget-object v3, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    invoke-virtual {v3, v0}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v0

    iget-object v3, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    invoke-virtual {v3, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    iget-object v1, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setTextSize(F)V

    goto :goto_0

    :cond_2
    invoke-static {p2}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    sget-object v4, Lkairo/android/ui/n;->j:[F

    invoke-virtual {v3, v2, v4}, Landroid/graphics/Paint;->getTextWidths(Ljava/lang/String;[F)I

    move-result v2

    iget v3, p0, Lkairo/android/ui/n;->h:I

    int-to-float v3, v3

    const/high16 v4, 0x40000000    # 2.0f

    div-float/2addr v3, v4

    mul-float/2addr v3, v6

    add-float/2addr v3, v5

    float-to-int v3, v3

    move v7, v1

    move v1, v0

    move v0, v7

    :goto_1
    if-ge v0, v2, :cond_3

    sget-object v4, Lkairo/android/ui/n;->j:[F

    aget v4, v4, v0

    mul-float/2addr v4, v6

    const/high16 v5, 0x40a00000    # 5.0f

    add-float/2addr v4, v5

    int-to-float v5, v3

    div-float/2addr v4, v5

    float-to-int v4, v4

    mul-int/2addr v4, v3

    int-to-float v4, v4

    add-float/2addr v1, v4

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_3
    const/high16 v0, 0x41100000    # 9.0f

    add-float/2addr v0, v1

    float-to-int v0, v0

    div-int/lit8 v0, v0, 0xa

    int-to-float v0, v0

    goto :goto_0
.end method


# virtual methods
.method public final a(Ljava/lang/String;)I
    .locals 2

    if-eqz p1, :cond_0

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    if-nez v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    invoke-direct {p0, v0, p1}, Lkairo/android/ui/n;->a(Lkairo/android/ui/aa;Ljava/lang/String;)F

    move-result v0

    const v1, 0x3c23d70a    # 0.01f

    add-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_0
.end method

.method protected final a()V
    .locals 8

    const/16 v7, 0xc

    const/4 v6, 0x6

    const/4 v5, 0x2

    const/4 v4, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    if-nez v0, :cond_0

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    :cond_0
    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    invoke-virtual {v0, v4}, Landroid/graphics/Paint;->setLinearText(Z)V

    invoke-virtual {p0, v3}, Lkairo/android/ui/n;->a(I)V

    invoke-static {}, Lkairo/android/i/h;->a()Z

    move-result v0

    if-eqz v0, :cond_4

    iput v3, p0, Lkairo/android/ui/n;->e:I

    sget v0, Lkairo/android/ui/n;->l:I

    if-nez v0, :cond_3

    iput v5, p0, Lkairo/android/ui/n;->g:I

    :goto_0
    sget-object v0, Lkairo/android/ui/n;->k:Landroid/graphics/Typeface;

    if-nez v0, :cond_1

    sget-object v0, Lkairo/android/ui/n;->f:[Landroid/graphics/Typeface;

    iget v1, p0, Lkairo/android/ui/n;->g:I

    aget-object v0, v0, v1

    sget-object v1, Lkairo/android/ui/n;->d:[I

    iget v2, p0, Lkairo/android/ui/n;->e:I

    aget v1, v1, v2

    invoke-static {v0, v1}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;I)Landroid/graphics/Typeface;

    move-result-object v0

    sput-object v0, Lkairo/android/ui/n;->k:Landroid/graphics/Typeface;

    :cond_1
    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    sget-object v1, Lkairo/android/ui/n;->k:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget v0, p0, Lkairo/android/ui/n;->g:I

    if-nez v0, :cond_2

    sget v0, Lkairo/android/ui/n;->l:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_2

    const-string v0, "\u3043"

    invoke-virtual {p0, v0}, Lkairo/android/ui/n;->a(Ljava/lang/String;)I

    move-result v0

    if-ne v0, v7, :cond_5

    const-string v0, "\u30c8"

    invoke-virtual {p0, v0}, Lkairo/android/ui/n;->a(Ljava/lang/String;)I

    move-result v0

    if-ne v0, v7, :cond_5

    const-string v0, "."

    invoke-virtual {p0, v0}, Lkairo/android/ui/n;->a(Ljava/lang/String;)I

    move-result v0

    if-ne v0, v6, :cond_5

    const-string v0, "\uff72"

    invoke-virtual {p0, v0}, Lkairo/android/ui/n;->a(Ljava/lang/String;)I

    move-result v0

    if-ne v0, v6, :cond_5

    sput v4, Lkairo/android/ui/n;->l:I

    :goto_1
    sget v0, Lkairo/android/ui/n;->l:I

    if-nez v0, :cond_2

    iput v5, p0, Lkairo/android/ui/n;->g:I

    sget-object v0, Lkairo/android/ui/n;->f:[Landroid/graphics/Typeface;

    iget v1, p0, Lkairo/android/ui/n;->g:I

    aget-object v0, v0, v1

    sget-object v1, Lkairo/android/ui/n;->d:[I

    iget v2, p0, Lkairo/android/ui/n;->e:I

    aget v1, v1, v2

    invoke-static {v0, v1}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;I)Landroid/graphics/Typeface;

    move-result-object v0

    sput-object v0, Lkairo/android/ui/n;->k:Landroid/graphics/Typeface;

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    sget-object v1, Lkairo/android/ui/n;->k:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    :cond_2
    return-void

    :cond_3
    iput v3, p0, Lkairo/android/ui/n;->g:I

    goto :goto_0

    :cond_4
    iput v4, p0, Lkairo/android/ui/n;->e:I

    iput v5, p0, Lkairo/android/ui/n;->g:I

    goto :goto_0

    :cond_5
    sput v3, Lkairo/android/ui/n;->l:I

    goto :goto_1
.end method

.method public final a(F)V
    .locals 3

    const/high16 v0, 0x42c80000    # 100.0f

    div-float v0, p1, v0

    iput v0, p0, Lkairo/android/ui/n;->m:F

    iget v0, p0, Lkairo/android/ui/n;->h:I

    int-to-float v0, v0

    iget v1, p0, Lkairo/android/ui/n;->m:F

    mul-float/2addr v0, v1

    iget-object v1, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    iget v2, p0, Lkairo/android/ui/n;->m:F

    div-float/2addr v0, v2

    invoke-virtual {v1, v0}, Landroid/graphics/Paint;->setTextSize(F)V

    return-void
.end method

.method public final a(I)V
    .locals 2

    iput p1, p0, Lkairo/android/ui/n;->h:I

    iput p1, p0, Lkairo/android/ui/n;->c:I

    iget v0, p0, Lkairo/android/ui/n;->c:I

    sget-object v1, Lkairo/android/ui/n;->a:[I

    array-length v1, v1

    if-ge v0, v1, :cond_0

    sget-object v0, Lkairo/android/ui/n;->a:[I

    aget v0, v0, p1

    iput v0, p0, Lkairo/android/ui/n;->h:I

    :cond_0
    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    iget v1, p0, Lkairo/android/ui/n;->h:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    return-void
.end method

.method public final a(Lkairo/android/ui/n;)V
    .locals 2

    iget v0, p1, Lkairo/android/ui/n;->c:I

    iput v0, p0, Lkairo/android/ui/n;->c:I

    iget v0, p1, Lkairo/android/ui/n;->e:I

    iput v0, p0, Lkairo/android/ui/n;->e:I

    iget v0, p1, Lkairo/android/ui/n;->g:I

    iput v0, p0, Lkairo/android/ui/n;->g:I

    iget v0, p1, Lkairo/android/ui/n;->h:I

    iput v0, p0, Lkairo/android/ui/n;->h:I

    iget v0, p1, Lkairo/android/ui/n;->m:F

    iput v0, p0, Lkairo/android/ui/n;->m:F

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    iget-object v1, p1, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->set(Landroid/graphics/Paint;)V

    return-void
.end method

.method public final a(Lkairo/android/ui/o;Ljava/lang/String;FF)V
    .locals 1

    invoke-virtual {p1}, Lkairo/android/ui/o;->i()Lkairo/android/ui/n;

    move-result-object v0

    invoke-virtual {p1, p0}, Lkairo/android/ui/o;->a(Lkairo/android/ui/n;)V

    invoke-virtual {p1, p2, p3, p4}, Lkairo/android/ui/o;->a(Ljava/lang/String;FF)V

    invoke-virtual {p1, v0}, Lkairo/android/ui/o;->a(Lkairo/android/ui/n;)V

    return-void
.end method

.method public final b(Ljava/lang/String;)F
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0, p1}, Lkairo/android/ui/n;->a(Lkairo/android/ui/aa;Ljava/lang/String;)F

    move-result v0

    return v0
.end method

.method public final b()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    return-object v0
.end method

.method public final b(I)V
    .locals 3

    iget v0, p0, Lkairo/android/ui/n;->e:I

    if-eq v0, p1, :cond_0

    iget-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    sget-object v1, Lkairo/android/ui/n;->f:[Landroid/graphics/Typeface;

    iget v2, p0, Lkairo/android/ui/n;->g:I

    aget-object v1, v1, v2

    sget-object v2, Lkairo/android/ui/n;->d:[I

    aget v2, v2, p1

    invoke-static {v1, v2}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;I)Landroid/graphics/Typeface;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    :cond_0
    iput p1, p0, Lkairo/android/ui/n;->e:I

    return-void
.end method

.method public final c()I
    .locals 1

    iget v0, p0, Lkairo/android/ui/n;->c:I

    return v0
.end method

.method public final d()I
    .locals 1

    iget v0, p0, Lkairo/android/ui/n;->e:I

    return v0
.end method

.method public final e()I
    .locals 1

    iget v0, p0, Lkairo/android/ui/n;->g:I

    return v0
.end method

.method public final f()I
    .locals 1

    iget v0, p0, Lkairo/android/ui/n;->h:I

    return v0
.end method

.method public final g()F
    .locals 2

    iget v0, p0, Lkairo/android/ui/n;->h:I

    int-to-float v0, v0

    const/high16 v1, 0x40000000    # 2.0f

    div-float/2addr v0, v1

    return v0
.end method

.method public final h()V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lkairo/android/ui/n;->i:Landroid/graphics/Paint;

    return-void
.end method
